package com.zheinfo.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 微信小程序配置
 * 
 * @author zheinfo
 */
@Component
@ConfigurationProperties(prefix = "wechat")
public class WechatConfig {
    
    /** 小程序AppID */
    private String appid;
    
    /** 小程序秘钥 */
    private String secret;
    
    /** 商户号 */
    private String mchId;
    
    /** API密钥 */
    private String apiKey;
    
    /** 支付回调地址 */
    private String notifyUrl;

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getMchId() {
        return mchId;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public String getApiKey() {
        return apiKey;
    }

    public void setApiKey(String apiKey) {
        this.apiKey = apiKey;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }
}
